let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n63,
                    i =
                    (this && this.__extends) ||
                    ((_n63 = function n(t, e) {
                            return (_n63 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n63(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        });
                Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.CardType1 = void 0);
                var r = t('UIComponent'),
                    a = t('CardMrg'),
                    s = t('AbsInfo'),
                    c = t('CardType1Com'),
                    l = (function(t) {
                        function e() {
                            return (null !== t && t.apply(this, arguments)) || this;
                        }
                        return (
                            i(e, t),
                            (e.prototype.onInit = function() {
                                t.prototype.onInit.call(this);
                                var e = this.view.getChildByName('CardItem'),
                                    o = this.view.getChildByName('layout');
                                e.parent = null;
                                for (var n = 0; n < a.CardMrg.ins.slots.length; n++) {
                                    var i = a.CardMrg.ins.slots[n],
                                        r = new c.CardType1Com(cc.instantiate(e), i);
                                    o.addChild(r.view);
                                }
                                a.CardMrg.ins.on(
                                        s.InfoEvent.StateChanged,
                                        this.onStateChangled,
                                        this
                                    ),
                                    this.onStateChangled();
                            }),
                            (e.prototype.onStateChangled = function() {
                                for (var t = 0; t < a.CardMrg.ins.items.length; t++) {
                                    var e = a.CardMrg.ins.items[t];
                                    e.own && e.isBattle;
                                }
                            }),
                            (e.prototype.getCard = function(t) {
                                return (
                                    void 0 === t && (t = 0),
                                    this.view.getChildByName('layout').children[t]
                                );
                            }),
                            e
                        );
                    })(r.UIComponent);
                (o.CardType1 = l), console.log("end");
            module.exports =  e.exports;